   //列表渲染
import React, { useState } from 'react';
import { scaleSizeH, scaleSizeW, setSpText } from '../../util/ScreenUtil.js'
import { Text,TouchableOpacity,Image } from 'react-native';
export default function renderActorItem(props) {
    let { name,roles,actorViewstyle,actorImgStyle} = props
    return (
        <TouchableOpacity style={actorViewstyle}>
                <Image style={actorImgStyle}
                    resizeMode="stretch"
                    source={require("../../resource/imgs/tj1.jpg")}
                ></Image> 
                <Text style={{ fontSize: setSpText(24), textAlign: "center" }}>{name}</Text>
                <Text style={{ fontSize: setSpText(20), color: "#969595", textAlign: "center" }}>{roles}</Text>
        </TouchableOpacity>
    )
 
}